Debitor: D-3101000 - Test AG - main debitor from 2010:
Create Self Debitor for Partner with Distinct Contact Data| name | value |
|---|---|
| partnerPersonTradeName | Test AG |
| billingContactCaption | Test AG - billing department |
| billingContactEmailAddress | billing@test-ag.example.org |
| debitorNumberSuffix | 01 |
| billable | true |
| vatId | VAT123456 |
| vatCountryCode | DE |
| vatBusiness | true |
| vatReverseCharge | false |
| defaultPrefix | tsx |
HTTP GET "/api/hs/office/relations?relationType=PARTNER&personData=Test+AG" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }`
=> status: 200 OK
[ {
"uuid" : "22b0c1b5-5b3b-4cd1-8c56-464f71deeac3", // partnerRelationUuid
"anchor" : {
"uuid" : "882bda1d-4e5e-42f8-afdd-b9741d1c1f4e", // Person: Hostsharing eG
"personType" : "LEGAL_PERSON",
"tradeName" : "Hostsharing eG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"holder" : {
"uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // partnerPersonUuid
"personType" : "LEGAL_PERSON",
"tradeName" : "Test AG",
"salutation" : null,
"title" : null,
"givenName" : null,
"familyName" : null
},
"type" : "PARTNER",
"mark" : null,
"contact" : {
"uuid" : "eef1dec6-8687-4615-91ae-3fbbcc48dd34", // Contact: Test AG - China
"caption" : "Test AG - China",
"postalAddress" : {
"country" : "China",
"province" : "Guangdong Province",
"city" : "Dongguan City",
"street" : "No.2 Commercial Second Street",
"district" : "Niushan Wei Wu",
"department" : "Executive Board",
"building" : "Thi Chi Koh Building"
},
"emailAddresses" : {
"main" : "norden@test-ag.example.org"
},
"phoneNumbers" : {
"phone" : "++15 999 654321"
}
}
} ]
In production, data this query could result in multiple outputs. In that case, you have to find out which is the right one.
HTTP POST "/api/hs/office/bankaccounts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"holder" : "Test AG - refund bank account",
"iban" : "DE88100900001234567892",
"bic" : "BEVODEBB"
}
EOF
=> status: 201 CREATED c95a77a4-e400-4d8d-bb70-79e48d8f0296
HTTP POST "/api/hs/office/contacts" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"caption" : "Test AG - billing department",
"emailAddresses" : {
"main" : "billing@test-ag.example.org"
}
}
EOF
=> status: 201 CREATED 5c020df5-ec0c-4ecf-a8de-c3dcff48b863
HTTP POST "/api/hs/office/debitors" \
-H "Authorization: Bearer $HSADMINNG_JWT_BEARER" \
`# {` \
`# "sub" : "uuid<hsh-alex_superuser>"` \
`# }` \
<<EOF
{
"debitorRel" : {
"anchor.uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // partnerPersonUuid
"holder.uuid" : "9e12338f-c1ea-4237-9d64-f085a84850c6", // partnerPersonUuid
"contact.uuid" : "5c020df5-ec0c-4ecf-a8de-c3dcff48b863" // Contact: Test AG - billing department
},
"debitorNumberSuffix" : "01",
"billable" : true,
"vatId" : "VAT123456",
"vatCountryCode" : "DE",
"vatBusiness" : true,
"vatReverseCharge" : false,
"refundBankAccount.uuid" : "c95a77a4-e400-4d8d-bb70-79e48d8f0296", // BankAccount: Test AG - refund bank account
"defaultPrefix" : "tsx"
}
EOF
=> status: 201 CREATED 60d1ee59-e956-4e4a-889b-7dc5bdf66a21
generated on 2026-08-10 04:34:21 for branch HEAD